<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue"></script>
</head>
<body>
<li id="example" v-for="n in eventNumber">{{n}}</li>
<script>
//你也可以用v-for通过一个对象的属性来迭代
    new Vue({
        el:'#example',
        data:{
           numbers:[1,2,3,4,5]
        },
        computed:{
            eventNumber:function(){
                return this.number.filter(function(number){
                    return number%2===0
                })
            }
        }
    })

</script>
</body>
</html>